<% if mobile? %>
  <% content_for :mobile_menu do %>
  <a href=""></a>
  <% end %>

  <% content_for :app_back do %>
  <a href="javascript:void(0)" onclick="history.go(-1)">
    <i class="icon-arrow-left"></i>
  </a>
  <% end %>

  <% content_for :app_title do %>
    付款
  <% end %>

  <% content_for :app_action do %>
  <a href=""></a>
  <% end %>

  <div class="mobile-payments-pay-back">
    <hr class="line">
    <% if @flag %>
      <%= render partial: 'mobile_callback_success' %>
    <% else %>
      <%= render partial: 'mobile_callback_fail', locals: { order: @order } %>
    <% end %>
  </div>

<% else %>
  <div class="payments-pay-back">
    <div class="row margin-reset top-row">
        <div class="pull-right">
            <a href="/products">
                <i class="fa fa-angle-left"></i> 返回商城
            </a>
        </div>
        <h4>支付结果</h4>
    </div>

    <% if @flag %>
      <%= render partial: 'callback_success' %>
    <% else %>
      <%= render partial: 'callback_fail', locals: { order: @order } %>
    <% end %>
  </div>
<% end %>
